package BeenChina.PM.Util;

public class PermissionItem {

	private String id,name,action;
	private NavMenu menu; 
	private PermissionItemType itemType;
	private String memo;
	
	public PermissionItem(String id,String name,String action,NavMenu menu,PermissionItemType itemType,String memo) {
		this.id = id;
		this.name = name;
		this.action = action;
		this.menu =menu;
		this.itemType = itemType;
		this.memo = memo;
	}
	
	public String getId(){return id;}
	public NavMenu getMenu(){return menu;};
	public String getName(){return name;}
	public String getAction(){return action;}
	public String getIco()
	{
		String value = "./img/table.png";
		switch (itemType) {
		case chart:
			value = "./img/LineChart.png";
			break;
		case table:
			value = "./img/table.png";
			break;
		default:
			break;
		}
		
		return value;
	}

	public PermissionItemType getItemType() {
		return itemType;
	}

	public String getMemo() {
		// TODO Auto-generated method stub
		return memo;
	}
	
}

